import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_sms_log",{schema:"nest-mall" } )
export class MallSmsLog {

    @PrimaryGeneratedColumn({
        type:"mediumint", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:false,
        name:"user_id"
        })
    userId:number;
        

    @Column("varchar",{ 
        nullable:true,
        length:32,
        name:"phone"
        })
    phone:string | null;
        

    @Column("bigint",{ 
        nullable:true,
        name:"log_date"
        })
    logDate:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:12,
        name:"sms_code"
        })
    smsCode:string | null;
        

    @Column("bigint",{ 
        nullable:true,
        name:"send_status"
        })
    sendStatus:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        name:"sms_text"
        })
    smsText:string | null;
        
}
